
#include <BPainter>
#include <BRender>
#include <BViewer>

#include "SelectHandler.h"

SelectHandler::SelectHandler()
{

}
SelectHandler::~SelectHandler()
{

}

void SelectHandler::paint(BPainter& painter)
{
	BViewer* viewer = this->viewer();
	painter.setLineWidth(10);
	painter.setColor(BColor(0, 1, 0));
	painter.drawRect(10, 10, viewer->width() - 20, viewer->height() - 20);
}
void SelectHandler::render(BRender& render)
{
	render.setLighting(false);
	render.setDepthTest(false);
	render.setLineSmooth(true);
	render.setLineWidth(1);
	
	BVector a(-10, 0, 0);
	BVector b(10, 0, 0);
	BVector c(0, 0, 20);
	render.setLighting(false);
	render.setColor(BColor(0, 1, 0));
	render.drawTriangle(a, b, c);

}
